imgr = new Array();
imgr[0] = "http://bit.ly/hGWr7r";
showRandomImg = true;
labelnumposts = 6;
showPostDate = true;
var showdate = true;
var max_post = 8;
String.prototype.GetValue = function (h) {
	h = RegExp("(^|&)" + h + "=([^&]*)(&|$)");
	h = this.substr(this.indexOf("?") + 1).match(h);
	return null != h ? unescape(h[2]) : null
};
var str = location.href,
page = str.GetValue("page"),
view = str.GetValue("v"),
urllength = homepageurl.length;
void 0 == page && (page = "1");
void 0 == view && (view = "full");
if ( - 1 != str.indexOf("search/label")) {
	if ( - 1 != str.indexOf("?")) var str1 = str.split("?")[0],
	label = str1.substring(urllength + 13, str1.length);
	else label = str.substring(urllength + 13, str.length);
	var textlabel = "/-/" + label,
	textpage = "" + label
} else textpage = textlabel = "";
function stripHtmlTags(h, k) {
	h = h.replace(/<br.*?>/ig, " ");
	return h.replace(/<.*?>/ig, "").split(/\s+/).slice(0, k - 1).join(" ")
}
function showrecentposts(h) {
	img = [];
	for (var k = 0; k < numposts; k++) {
		var g = h.feed.entry[k],
		e = g.title.$t,
		l;
		if (k == h.feed.entry.length) break;
		for (var f = 0; f < g.link.length; f++) if ("alternate" == g.link[f].rel) {
			l = g.link[f].href;
			break
		}
		for (f = 0; f < g.link.length; f++) if ("replies" == g.link[f].rel && "text/html" == g.link[f].type) {
			g.link[f].title.split(" ");
			break
		}
		if (g.category) for (f = 0; f < g.category.length; f++);
		var f = g.published.$t,
		m = f.split("-")[2].substring(0, 2),
		n = f.split("-")[1],
		f = f.split("-")[0];
		postDay = m + "/" + n + "/" + f;
		s = g = "content" in g ? g.content.$t: "summary" in g ? g.summary.$t: "";
		a = s.indexOf("<img");
		b = s.indexOf('src="', a);
		c = s.indexOf('"', b + 5);
		d = s.substr(b + 5, c - b - 5);
		img[k] = -1 != a && -1 != b && -1 != c && "" != d ? d: "http://bit.ly/hGWr7r";
		e = k % 2 ? '<div class="home-navi oddPosts"><a alt="' + e + '" title="' + e + '" href="' + l + '"><img alt="' + e + '" title="' + e + '" src="' + img[k] + '" /></a><h3><a alt="' + e + '" title="' + e + '" href="' + l + '">' + e + "</a></h3><p>" + stripHtmlTags(g, sumpost) + ' ... <span class="continue"><a alt="' + e + '" title="' + e + '" href="' + l + '">Chi ti\u1ebft...</a></span></p><div class="clear"></div></div><div class="line-border"></div>': '<div class="home-navi evenPosts"><a alt="' + e + '" title="' + e + '" href="' + l + '"><img alt="' + e + '" title="' + e + '" src="' + img[k] + '" /></a><h3><a alt="' + e + '" title="' + e + '" href="' + l + '">' + e + "</a></h3><p>" + stripHtmlTags(g, sumpost) + ' ... <span class="continue"><a alt="' + e + '" title="' + e + '" href="' + l + '">Chi ti\u1ebft...</a></span></p><div class="clear"></div></div><div class="line-border"></div>';
		document.write(e)
	}
}
function numberOfPosts(h) {
	document.write('<script style="text/javascript">var totalPosts= ' + h.feed.openSearch$totalResults.$t + " ;\x3c/script>")
}
document.write('<script src="/feeds/posts/default' + textlabel + '?alt=json-in-script&callback=numberOfPosts">\x3c/script>');